package com.dispatcher.bean;

import java.io.Serializable;
import java.util.List;

public class UserOrders implements Serializable {
	private String region;
	private String name;
	private String phone;
	private String sendername;
	private List<Order> orders;
	public String getSendername() {
		return sendername;
	}
	public void setSendername(String sendername) {
		this.sendername = sendername;
	}
	public String getRegion() {
		return region;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setRegion(String region) {
		this.region = region;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public List<Order> getOrders() {
		return orders;
	}
	public void setOrders(List<Order> orders) {
		this.orders = orders;
	}
	public boolean isGiftSelected() {
		boolean b=false;
		for(Order ord:orders){
			if(ord.isGiftSelected()){
				b=true;
				break;
			}
		}
		return b;
	}
	public String getGiftname(){
		String name="";
		for(Order ord:orders){
			if(ord.isGiftSelected()){
				name=ord.getGiftname();
				break;
			}
		}
		
		return name;
	}
	public String getOrderTime(){
		String name="";
		name=orders.get(0).getCreatetime();
		
		return name;
	}
	public String getTime(){
		String name=orders.get(0).getCreatetime();
		
		
		return name;
	}
	
}
